import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        char[] ch = s.toCharArray();
        String ret = "";
        for (int i = ch.length - 1; i >= 0; i-- ) {
            ret += ch[i];
        }
        System.out.println(ret);
    }
}
